package org.txlcn.demo.serviceb;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 * Date: 2018/12/25
 *
 * @author ujued
 */
@RestController
public class AccountController {

    @Autowired
    private AccountServiceImpl accountServiceImpl;

    @GetMapping("/rpc")
    public String rpc(@RequestParam("money") Integer money) {
        return accountServiceImpl.rpc(money);
    }
}
